<html>
<head>
<style>
@page {
  size: 100px 200px;
  margin: 0;
}
body {
  margin: 0;
}
a {
  display: block;
  height: 10px;
  background-color: green;
}
</style>
</head>
<body>
   <a href="https://openhtmltopdf.com"></a>
</body>
</html>
